

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_ACTIVE_BUZZER_BLOCK_1607595066017'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let btn = this.getFieldValue('btn');
          
            Blockly.Arduino.definitions_['include_EXT_ACTIVE_BUZZER_BLOCK_1607595066017'] = ``;
            Blockly.Arduino.definitions_['define_EXT_ACTIVE_BUZZER_BLOCK_1607595066017'] = `#define buzzer_pin${pin} ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_ACTIVE_BUZZER_BLOCK_1607595066017'] = `pinMode(buzzer_pin${pin}, OUTPUT);`;
             return  `digitalWrite(buzzer_pin${pin},${btn});\r\n`;
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        